package com.jack.rpc.intf.impl;

import com.jack.rpc.entity.Student;
import com.jack.rpc.intf.StudentService;

/**
 * @author jie
 * @date 2018/8/9
 */
public class StudentServiceImpl implements StudentService{
    @Override
    public String saveStudent(Student student) {
        return "rpcServer-saveStudent: " + student.toString();
    }

    @Override
    public Student findById(int id) {
        Student student = new Student();
        student.setId(id);
        student.setName("我是三好学生");
        student.setSex(1);
        System.out.println("server：findById:" + id);
        return student;
    }
}
